<script setup lang="ts">
import { APP_CONFIG } from '~/config'
const themeOverrides = {
  common: {
    primaryColor: '#cc0000',
    primaryColorHover: '#db0f0f',
    primaryColorPressed: '#db0f0f',
    primaryColorSuppl: '#cc0000',
  },
}
const { data } = await useAsyncData('menu', () => useApiFetch(`/app/articleCategory/listNextTree/${APP_CONFIG.menuCategoryId}`))

let menu = data.value.data

provide('menu', menu)
</script>

<template>
  <n-config-provider preflight-style-disabled :theme-overrides="themeOverrides">
    <Header />
    <slot />
    <Footer />
  </n-config-provider>
</template>
